<include file="Common:header" />
<body>
<table><tr>
<td width="180"><include file="Common:adminpanel" /></td>
<td valign="top" >
<div>	
	<table width="100%" cellspacing="1" cellpadding="3" border="0">
	<tr>
			<th colspan="7" height="30">快递列表</th>
			<th>[<a href="<{:U('templateadd')}>">添加模板</a>]</th>
		</tr>
		<tr class="header">
			<td height="30">ID</td>
			<td>模板名称</td>
			<td>关联快递</td>
			<td>起步重量</td>
			<td>加价重量</td>
			<td>默认起步价格</td>
			<td>默认加价</td>
			<td>操作</td>
		</tr>
		<?php 
if( ! empty( $tpllist )) {
    
	foreach( $tpllist as $tpl ) {
		echo "<tr class='row'>
			<td>{$tpl['id']}</td>
			<td>{$tpl['tplname']}</td>
			<td>{$tpl['name']}({$tpl['code']})</td>
			<td>{$tpl['startweight']}</td>
			<td>{$tpl['increaseweight']}</td>
			<td>{$tpl['startprice']}</td>
			<td>{$tpl['increaseprice']}</td>
			<td>[<a href='" .U("templateedit?tplid={$tpl['id']}"). "'>修改模板</a>] - [<a href='" .U("templateprice?tplid={$tpl['id']}"). "'>地区价格</a>] - [<a href='" .U("tplcontent?tplid={$tpl['id']}"). "'>打印模板</a>]</td>
		</tr>";
	}
}else {
	echo '暂无模板';
}  
?>
	</table>
</div>
</td>
</tr>
</table>
</body>
</html>